const loginPage = [
  {
    path: '/login',
    name: 'login',
    component: () =>
      import(/* webpackChunkName: "Login" */ '../pages/login/Login')
  }
]

const mainPage = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/main',
    name: 'main',
    component: () =>
      import(/* webpackChunkName: "Main" */ '../pages/main/Main'),
    children: [
      {
        path: 'activity/activityList',
        name: 'activityList',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/activity/activityList'
          )
      }, {
        path: 'activity/activitySchool',
        name: 'activitySchool',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/activity/activitySchool'
          )
      },
      {
        path: '/index',
        name: 'index',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/index/index'
          )
      },
      {
        path: 'email/email',
        name: 'email',
        component: () =>
            import(
              /* webpackChunkName: "Second" */ '../pages/main/routes/email/email'
            )
      },
      {
        path: 'activity/createActivity',
        name: 'createActivity',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/activity/createActivity'
          )
      },
      {
        path: 'user/userInfo',
        name: 'userInfo',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/user/userInfo'
          )
      },
      {
        path: 'check/checkBySchool',
        name: 'checkBySchool',
        component: () =>
          import(
            /* webpackChunkName: "First" */ '../pages/main/routes/check/checkBySchool'
          )
      },
      {
        path: 'feekback/editfeekback',
        name: 'editfeekback',
        component: () =>
          import(
            '../pages/main/routes/feekback/editfeekback'
          )
      },
      {
        path: 'feekback/viewfeekbacklist',
        name: 'viewfeekbacklist',
        component: () =>
          import(
            '../pages/main/routes/feekback/viewfeekbacklist'
          )
      },
      {
        path: 'feekback/viewfeekback',
        name: 'viewfeekback',
        component: () =>
            import(
              '../pages/main/routes/feekback/viewfeekback'
            )
      },
      {
        path: 'feekback/allfeekbacks',
        name: 'allfeekbacks',
        component: () =>
          import(
            '../pages/main/routes/feekback/allfeekbacks'
          )
      },
      {
        path: 'feekback/allfeekbacklist',
        name: 'allfeekbacklist',
        component: () =>
            import(
              '../pages/main/routes/feekback/allfeekbacklist'
            )
      },
      {
        path: 'middle/viewmiddle',
        name: 'viewmiddle',
        component: () =>
          import(
            '../pages/main/routes/middle/viewmiddle'
          )
      },
      {
        path: 'check/checkByCollege',
        name: 'checkByCollege',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/check/checkByCollege'
          )
      },
      {
        path: 'check/studentCheck',
        name: 'studentCheck',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/check/studentCheck'
          )
      },
      {
        path: 'activity/activity',
        name: 'activityDetail',
        component: () =>
          import(
            /* webpackChunkName: "Second" */ '../pages/main/routes/activity/activity'
          )
      },
      {
        path: 'activity/activityStudent',
        name: 'activityStudent',
        component: () =>
          import(
            '../pages/main/routes/activity/activityStudent'
          )
      },
      {
        path: 'administrators/administrators',
        name: 'administrators',
        component: () =>
          import(
            '../pages/main/routes/administrators/administrators'
          )
      },
      {
        path: 'administrators/activity',
        name: 'administratorsActivity',
        component: () =>
          import(
            '../pages/main/routes/administrators/activities'
          )
      },
      {
        path: 'user/allUser',
        name: 'allUser',
        component: () =>
          import(
            '../pages/main/routes/user/allUser'
          )
      }
    ]
  }
]

const errorPage = [
  {
    path: '/notFound',
    name: 'notFound',
    component: () =>
      import(/* webpackChunkName: "NotFound" */ '../pages/error/NotFound')
  },
  {
    path: '/forbidden',
    name: 'forbidden',
    component: () =>
      import(/* webpackChunkName: "Forbidden" */ '../pages/error/Forbidden')
  },
  {
    path: '/badGateway',
    name: 'badGateway',
    component: () =>
      import(/* webpackChunkName: "BadGateway" */ '../pages/error/BadGateway')
  },
  {
    path: '*',
    redirect: '/notFound'
  }
]

const animaPage = [
  {
    path: '/animation',
    name: 'animation',
    component: () =>
      import(
        '../pages/main/routes/animation/welcomeAnimation'
      )
  }
]
export default [...loginPage, ...mainPage, ...errorPage, ...animaPage]
